/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jili.ubert.code.client2server;

import com.baidu.bjf.remoting.protobuf.Codec;
import com.baidu.bjf.remoting.protobuf.ProtobufProxy;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author dragon
 */
public class RequestOperateDBProto {
    public static byte[] EnCode(RequestOperateDBProto msg) throws IOException{
        Codec<RequestOperateDBProto> Lcode = ProtobufProxy.create(RequestOperateDBProto.class);
        return Lcode.encode(msg);
    }
    public static RequestOperateDBProto DeCode(byte[] data) throws IOException{
        Codec<RequestOperateDBProto> Lcode = ProtobufProxy.create(RequestOperateDBProto.class);
        return Lcode.decode(data);
        
    }
    @Protobuf
    private int instructionID;
    /*
    1:insert  2.updete 3 delete
    
    1
    */
    @Protobuf
    private int dbtype;
    @Protobuf
    private byte[] data;//sql

    public int getInstructionID() {
        return instructionID;
    }

    public void setInstructionID(int instructionID) {
        this.instructionID = instructionID;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    public int getDbtype() {
        return dbtype;
    }

    public void setDbtype(int dbtype) {
        this.dbtype = dbtype;
    }
}
